package com.ht.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ht.common.core.annotation.Excel;
import com.ht.common.core.valid.StrLenRange;
import com.ht.common.core.web.domain.BaseEntity;

/**
 * 企业操作员对象 b_enterprise_oper
 * 
 * @author zmx
 * @date 2025-03-22
 */
public class EnterpriseOper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** $column.columnComment */
    @StrLenRange(maxLen=32,message="企业代码不能为空并且不能超过32",required=true)
    private String entCode;

    /** 身份证号码 */
    @StrLenRange(maxLen=20,message="身份证号码不能为空并且不能超过20",required=true)
    private String idNo;

    /** 姓名 */
    @StrLenRange(maxLen=10,message="姓名不能为空并且不能超过10",required=true)
    private String name;

    /** 电话 */
    @StrLenRange(maxLen=20,message="姓名不能超过20")
    private String telephone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    @StrLenRange(maxLen=20,message="邮箱不能超过20")
    private String email;

    /** 账号 */
    @StrLenRange(minLen=6,maxLen=20,required=true,message="账号不能长度不能少于6位和超过20位")
    private String account;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setEntCode(String entCode) 
    {
        this.entCode = entCode;
    }

    public String getEntCode() 
    {
        return entCode;
    }
    public void setIdNo(String idNo) 
    {
        this.idNo = idNo;
    }

    public String getIdNo() 
    {
        return idNo;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setAccount(String account) 
    {
        this.account = account;
    }

    public String getAccount() 
    {
        return account;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("entCode", getEntCode())
            .append("idNo", getIdNo())
            .append("name", getName())
            .append("telephone", getTelephone())
            .append("email", getEmail())
            .append("account", getAccount())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
